home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOpus Plus
/
DOpus Plus.iso
/
Tutorial
/
ARexx Tutorial
/
TuteRexx
/
DOS-DOpus11.dopus5
< prev
next >
Wrap
Text File
|
1998-09-14
|
1KB
|
24 lines
/*
$VER: DOS-DOpus.dopus5 1.1 (28.7.98)
Loads current shell directory into a new DOpus5 lister, selects files
according to the passed filespec.
*/
options results /* Enable results */
parse arg pattern . /* Parse a given pattern into a variable */
if ~show('P','DOPUS.1') then do /* Check for DOPUS.1 ARexx port */
Say "DirectoryOpus is not running." /* Warn user if DOpus not running */
Exit (5) /* Exit with result code = 5 (Warn) */
end /* End this loop */
Address 'DOPUS.1' /* Address DOpus */
dopus front /* Bring DOpus to the front */
dir = pragma('d') /* Returns current shell in 'dir' */
lister new dir /* Open a new lister, path 'dir' */
handle = result /* Store the handle */
lister wait handle /* Wait for the lister to finish */
if pattern ~= '' then do
command source handle select "name="pattern /* Select the files */
lister refresh handle /* Refresh the display */
end
exit /* Exit */